package br.ufc.quixada.adrs.service;

import br.ufc.quixada.adrs.dao.PapelDAO;
import br.ufc.quixada.adrs.model.Papel;

public class PapelService {

    private final PapelDAO papelDAO = new PapelDAO();

    public Papel getPapelById(Long id) {
        return papelDAO.getById(id);
    }
    
     public Papel getPapelByNome(String nome) {
        return papelDAO.getByNome(nome);
    }
}
